aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/projets/[slug].tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/projets/[slug].tsx')
-rw-r--r--src/pages/projets/[slug].tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pages/projets/[slug].tsx b/src/pages/projets/[slug].tsx
index 1f9723a..958f61f 100644
--- a/src/pages/projets/[slug].tsx
+++ b/src/pages/projets/[slug].tsx
@@ -19,7 +19,6 @@ import {
SocialLink,
Spinner,
Time,
- TocWidget,
getLayout,
type ProjectOverviewProps,
} from '../../components';
@@ -51,6 +50,13 @@ import {
useHeadingsTree,
} from '../../utils/hooks';
+const Toc = dynamic(
+ async () => import('../../components').then((mod) => mod.TocWidget),
+ {
+ ssr: false,
+ }
+);
+
const getGithubRepoInputFrom = (namespace: string) => {
const parts = namespace.split('/');
@@ -257,7 +263,7 @@ const ProjectPage: NextPageWithLayout<ProjectPageProps> = ({ data }) => {
}}
/>
<PageSidebar>
- <TocWidget
+ <Toc
heading={<Heading level={2}>{messages.widgets.tocTitle}</Heading>}
tree={tree}
/>